import base_api
import pickle
import numpy
from sdk_array_newsystem import SDKArray
obj = base_api.BaseAPI()
array = SDKArray(0)
obj.devInit()
obj.selectChip(0)
obj.cfgReadPulse(ti=4,ts=10,tb=10,te=10)
t = obj.calc_array((0,484,0,92),numpy.random.randint(0,2,(1,484),dtype=numpy.int8))
# obj.cfgReadPulse(ti=63, ts=40, tb=255, te=60)
print("init infer success!")
